package com.itheima.homework.test3;

/**
 * @author jiangxun
 * @date 11-19-2024
 */
public abstract class Animal {
    private String name;
    private double weight;
    public Animal(String name, double weight) {
        this.name = name;
        this.weight = weight;
    }
    public abstract void eat();

    public String getName() {
        return name;
    }

    public double getWeight() {
        return weight;
    }
}
